%%
%练习3.1
clc
clear
a = -30:2:30;
b = -30:2:30;
[x,y] = meshgrid(a,b);
z = (10*sin(nthroot(x.^2+y.^2,2)))./(nthroot(1+x.^2+y.^2,2));

subplot(3,2,1);
plot3(x,y,z,'r--');
subplot(3,2,2);
mesh(x,y,z,'EdgeColor','g','FaceColor','r');
subplot(3,2,3);
meshc(x,y,z,'EdgeColor','g','FaceColor','r');
subplot(3,2,4);
surf(x,y,z,'EdgeColor','g','FaceColor','r');
subplot(3,2,5);
surfl(x,y,z);
%等高线的绘制
subplot(3,2,6);
contour3(x,y,z);
%%
%2
clc
clear
syms x y z
subplot(3,2,1);
fimplicit3((x.^2)./4+(y.^2)./9+z.^2-1)
subplot(3,2,2);
fimplicit3(9*z-4*(x.^2)+9*(y.^2))
subplot(3,2,3);
fimplicit3((x.^2)./4+(y.^2)./9-1-(z.^2)./16)
subplot(3,2,4);
fimplicit3(z-x*y)
subplot(3,2,5);
subplot(3,2,6);



